function Rem() {
   var docEl = document.documentElement,
   oSize = docEl.clientWidth / 7.5;
   if (oSize > 100) {
   oSize = 100; 
}
   docEl.style.fontSize = oSize + 'px';
}
window.addEventListener('resize', Rem, false);
Rem();

$(function(){
	var swiper = new Swiper('.topBanner', {
        pagination: '.swiper-pagination',
        paginationClickable: true,
        autoplayDisableOnInteraction: false,
        autoplay: 2500
    });
    
   $('.sidemenu li').on('click',function(){

    if(!_ajax)
    {
      $(this).addClass('avtive').siblings().removeClass('avtive');
      var _caid = $(this).attr("data-caid");

      $(".flbox").css("display","none");

      if(_caid=="is_best")
      {
        $("#list_best").css("display","block");
      }
      else if(_caid=="is_hot")
      {
        $("#list_hot").css("display","block");
      }
      else
      {
        $("#list_goods").css("display","block");
        $("#list_goods h2").html( $(this).find("a").html() );
      }

      _getGoods(_caid,1);
    }

	    
	})

})